//
//  WSBlogStatus.swift
//  微博
//
//  Created by 武莎莎 on 15/9/9.
//  Copyright © 2015年 itcast. All rights reserved.
//

import UIKit

class WSBlogStatus: NSObject {
    /// 创建时间
    var created_at: String?
    /// 微博ID
    var id: Int = 0
    /// 微博信息内容
    var text: String?
    /// 微博来源
    var source: String?
    /// 配图数组
    var pic_urls: [[String: String]]?
    
    init(dict:[String:AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    
    override var description:String {
        // 注意keys中的值一定要与模型的属性一致，不能有空格
        let keys = ["created_at","id","text","source","pic_urls"]
        // KVC的模型转字典
        return dictionaryWithValuesForKeys(keys).description
    }

}
